{
 "cells": [
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": "# Concept Search",
   "id": "89198f3720fd339d"
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-06-05T08:30:48.543474Z",
     "start_time": "2025-06-05T08:30:46.478453Z"
    }
   },
   "cell_type": "code",
   "source": [
    "from edgar import *\n",
    "from edgar.xbrl import *\n",
    "\n",
    "c = Company(\"NVDA\")\n",
    "filings = c.get_filings(form=\"10-K\").latest(5)\n",
    "xbs = XBRLS.from_filings(filings)\n",
    "xbs"
   ],
   "id": "7ddbade772877bec",
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<edgar.xbrl.stitching.XBRLS at 0x145c59210>"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "execution_count": 3
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-06-05T08:42:09.843090Z",
     "start_time": "2025-06-05T08:42:09.816368Z"
    }
   },
   "cell_type": "code",
   "source": [
    "xb = xbs.xbrl_list[2]\n",
    "#xb.query().by_text(\"us-gaap:PaymentsToAcquireProductiveAssets\").to_dataframe('concept', 'label', 'value')\n",
    "xb.query().by_text(\"Payments to Acquire Businesses\")\n",
    "xb.statements.cashflow_statement().to_dataframe()"
   ],
   "id": "c3d0ca8dd1ff1e80",
   "outputs": [
    {
     "data": {
      "text/plain": [
       "                                              concept  \\\n",
       "0   us-gaap_NetCashProvidedByUsedInOperatingActivi...   \n",
       "1                               us-gaap_NetIncomeLoss   \n",
       "2   us-gaap_AdjustmentsToReconcileNetIncomeLossToC...   \n",
       "3                      us-gaap_ShareBasedCompensation   \n",
       "4        us-gaap_DepreciationDepletionAndAmortization   \n",
       "5                       us-gaap_GainLossOnInvestments   \n",
       "6             us-gaap_DeferredIncomeTaxExpenseBenefit   \n",
       "7                   us-gaap_OtherNoncashIncomeExpense   \n",
       "8   us-gaap_IncreaseDecreaseInOperatingCapitalAbst...   \n",
       "9        us-gaap_IncreaseDecreaseInAccountsReceivable   \n",
       "10              us-gaap_IncreaseDecreaseInInventories   \n",
       "11  us-gaap_IncreaseDecreaseInPrepaidDeferredExpen...   \n",
       "12          us-gaap_IncreaseDecreaseInAccountsPayable   \n",
       "13  us-gaap_IncreaseDecreaseInAccruedLiabilitiesAn...   \n",
       "14  us-gaap_IncreaseDecreaseInOtherNoncurrentLiabi...   \n",
       "15  us-gaap_NetCashProvidedByUsedInOperatingActivi...   \n",
       "16  us-gaap_NetCashProvidedByUsedInInvestingActivi...   \n",
       "17  us-gaap_ProceedsFromMaturitiesPrepaymentsAndCa...   \n",
       "18  us-gaap_ProceedsFromSaleOfAvailableForSaleSecu...   \n",
       "19  us-gaap_PaymentsToAcquireAvailableForSaleSecur...   \n",
       "20  us-gaap_PaymentsToAcquireBusinessesNetOfCashAc...   \n",
       "21  us-gaap_PaymentsForProceedsFromOtherInvestingA...   \n",
       "22  us-gaap_NetCashProvidedByUsedInInvestingActivi...   \n",
       "23  us-gaap_NetCashProvidedByUsedInFinancingActivi...   \n",
       "24         us-gaap_PaymentsForRepurchaseOfCommonStock   \n",
       "25  us-gaap_PaymentsRelatedToTaxWithholdingForShar...   \n",
       "26                        us-gaap_PaymentsOfDividends   \n",
       "27         us-gaap_ProceedsFromDebtNetOfIssuanceCosts   \n",
       "28                           us-gaap_RepaymentsOfDebt   \n",
       "29  us-gaap_ProceedsFromPaymentsForOtherFinancingA...   \n",
       "30  us-gaap_NetCashProvidedByUsedInFinancingActivi...   \n",
       "31  us-gaap_CashCashEquivalentsRestrictedCashAndRe...   \n",
       "32  us-gaap_CashCashEquivalentsRestrictedCashAndRe...   \n",
       "33  us-gaap_CashCashEquivalentsRestrictedCashAndRe...   \n",
       "34    us-gaap_SupplementalCashFlowInformationAbstract   \n",
       "35                         us-gaap_IncomeTaxesPaidNet   \n",
       "36                            us-gaap_InterestPaidNet   \n",
       "\n",
       "                                                label     2023-01-29  \\\n",
       "0               Cash flows from operating activities:                  \n",
       "1                                          Net Income   4368000000.0   \n",
       "2                                          Net Income                  \n",
       "3                    Stock-based compensation expense  -2709000000.0   \n",
       "4                       Depreciation and amortization   1544000000.0   \n",
       "5   Losses (gains) on investments in non-affiliate...     45000000.0   \n",
       "6                               Deferred income taxes  -2164000000.0   \n",
       "7                                               Other     -7000000.0   \n",
       "8   Changes in operating assets and liabilities, n...                  \n",
       "9                                 Accounts Receivable    822000000.0   \n",
       "10                                        Inventories  -2554000000.0   \n",
       "11                  Prepaid expenses and other assets  -1517000000.0   \n",
       "12                                   Accounts Payable   -551000000.0   \n",
       "13              Accrued and other current liabilities   1341000000.0   \n",
       "14                        Other long-term liabilities    252000000.0   \n",
       "15                 Net Cash from Operating Activities   5641000000.0   \n",
       "16              Cash flows from investing activities:                  \n",
       "17  Proceeds from Maturities, Prepayments and Call...  19425000000.0   \n",
       "18            Proceeds from Sale of Debt Securities,    1806000000.0   \n",
       "19                 Purchases of marketable securities -11897000000.0   \n",
       "20                     Payments to Acquire Businesses    -49000000.0   \n",
       "21                         Investments and other, net    -77000000.0   \n",
       "22                 Net Cash from Investing Activities   7375000000.0   \n",
       "23              Cash flows from financing activities:                  \n",
       "24    Payments related to repurchases of common stock -10039000000.0   \n",
       "25       Tax Withholding for Share-Based Compensation  -1475000000.0   \n",
       "26                              Payments of Dividends   -398000000.0   \n",
       "27            Issuance of debt, net of issuance costs            0.0   \n",
       "28                                  Repayment of debt           -0.0   \n",
       "29                                              Other     -2000000.0   \n",
       "30                 Net Cash from Financing Activities -11617000000.0   \n",
       "31                                 Net Change in Cash   1399000000.0   \n",
       "32         Cash and cash equivalents at end of period                  \n",
       "33         Cash and cash equivalents at end of period                  \n",
       "34  Supplemental disclosures of cash flow informat...                  \n",
       "35                                 Income Tax Expense   1404000000.0   \n",
       "36                             Cash paid for interest    254000000.0   \n",
       "\n",
       "       2022-01-30     2021-01-31  level  abstract  dimension  \n",
       "0                                     1     False      False  \n",
       "1    9752000000.0   4332000000.0      2     False      False  \n",
       "2                                     2     False      False  \n",
       "3   -2004000000.0  -1397000000.0      3     False      False  \n",
       "4    1174000000.0   1098000000.0      3     False      False  \n",
       "5    -100000000.0           -0.0      3     False      False  \n",
       "6    -406000000.0   -282000000.0      3     False      False  \n",
       "7      47000000.0    -20000000.0      3     False      False  \n",
       "8                                     3     False      False  \n",
       "9   -2215000000.0   -550000000.0      4     False      False  \n",
       "10   -774000000.0   -524000000.0      4     False      False  \n",
       "11  -1715000000.0   -394000000.0      4     False      False  \n",
       "12    568000000.0    312000000.0      4     False      False  \n",
       "13    581000000.0    290000000.0      4     False      False  \n",
       "14    192000000.0    163000000.0      4     False      False  \n",
       "15   9108000000.0   5822000000.0      2     False      False  \n",
       "16                                    1     False      False  \n",
       "17  15197000000.0   8792000000.0      2     False      False  \n",
       "18   1023000000.0    527000000.0      2     False      False  \n",
       "19 -24787000000.0 -19308000000.0      2     False      False  \n",
       "20   -263000000.0  -8524000000.0      2     False      False  \n",
       "21    -24000000.0    -34000000.0      2     False      False  \n",
       "22  -9830000000.0 -19675000000.0      2     False      False  \n",
       "23                                    1     False      False  \n",
       "24           -0.0           -0.0      2     False      False  \n",
       "25  -1904000000.0   -942000000.0      2     False      False  \n",
       "26   -399000000.0   -395000000.0      2     False      False  \n",
       "27   4977000000.0   4968000000.0      2     False      False  \n",
       "28  -1000000000.0           -0.0      2     False      False  \n",
       "29     -7000000.0     -4000000.0      2     False      False  \n",
       "30   1865000000.0   3804000000.0      2     False      False  \n",
       "31   1143000000.0 -10049000000.0      1     False      False  \n",
       "32                                    1     False      False  \n",
       "33                                    1     False      False  \n",
       "34                                    1     False      False  \n",
       "35    396000000.0    249000000.0      2     False      False  \n",
       "36    246000000.0    138000000.0      2     False      False  "
      ],
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>concept</th>\n",
       "      <th>label</th>\n",
       "      <th>2023-01-29</th>\n",
       "      <th>2022-01-30</th>\n",
       "      <th>2021-01-31</th>\n",
       "      <th>level</th>\n",
       "      <th>abstract</th>\n",
       "      <th>dimension</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>us-gaap_NetCashProvidedByUsedInOperatingActivi...</td>\n",
       "      <td>Cash flows from operating activities:</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>us-gaap_NetIncomeLoss</td>\n",
       "      <td>Net Income</td>\n",
       "      <td>4368000000.0</td>\n",
       "      <td>9752000000.0</td>\n",
       "      <td>4332000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>us-gaap_AdjustmentsToReconcileNetIncomeLossToC...</td>\n",
       "      <td>Net Income</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>us-gaap_ShareBasedCompensation</td>\n",
       "      <td>Stock-based compensation expense</td>\n",
       "      <td>-2709000000.0</td>\n",
       "      <td>-2004000000.0</td>\n",
       "      <td>-1397000000.0</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>us-gaap_DepreciationDepletionAndAmortization</td>\n",
       "      <td>Depreciation and amortization</td>\n",
       "      <td>1544000000.0</td>\n",
       "      <td>1174000000.0</td>\n",
       "      <td>1098000000.0</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>us-gaap_GainLossOnInvestments</td>\n",
       "      <td>Losses (gains) on investments in non-affiliate...</td>\n",
       "      <td>45000000.0</td>\n",
       "      <td>-100000000.0</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>us-gaap_DeferredIncomeTaxExpenseBenefit</td>\n",
       "      <td>Deferred income taxes</td>\n",
       "      <td>-2164000000.0</td>\n",
       "      <td>-406000000.0</td>\n",
       "      <td>-282000000.0</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>us-gaap_OtherNoncashIncomeExpense</td>\n",
       "      <td>Other</td>\n",
       "      <td>-7000000.0</td>\n",
       "      <td>47000000.0</td>\n",
       "      <td>-20000000.0</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>us-gaap_IncreaseDecreaseInOperatingCapitalAbst...</td>\n",
       "      <td>Changes in operating assets and liabilities, n...</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>us-gaap_IncreaseDecreaseInAccountsReceivable</td>\n",
       "      <td>Accounts Receivable</td>\n",
       "      <td>822000000.0</td>\n",
       "      <td>-2215000000.0</td>\n",
       "      <td>-550000000.0</td>\n",
       "      <td>4</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>us-gaap_IncreaseDecreaseInInventories</td>\n",
       "      <td>Inventories</td>\n",
       "      <td>-2554000000.0</td>\n",
       "      <td>-774000000.0</td>\n",
       "      <td>-524000000.0</td>\n",
       "      <td>4</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>us-gaap_IncreaseDecreaseInPrepaidDeferredExpen...</td>\n",
       "      <td>Prepaid expenses and other assets</td>\n",
       "      <td>-1517000000.0</td>\n",
       "      <td>-1715000000.0</td>\n",
       "      <td>-394000000.0</td>\n",
       "      <td>4</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>us-gaap_IncreaseDecreaseInAccountsPayable</td>\n",
       "      <td>Accounts Payable</td>\n",
       "      <td>-551000000.0</td>\n",
       "      <td>568000000.0</td>\n",
       "      <td>312000000.0</td>\n",
       "      <td>4</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>us-gaap_IncreaseDecreaseInAccruedLiabilitiesAn...</td>\n",
       "      <td>Accrued and other current liabilities</td>\n",
       "      <td>1341000000.0</td>\n",
       "      <td>581000000.0</td>\n",
       "      <td>290000000.0</td>\n",
       "      <td>4</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>us-gaap_IncreaseDecreaseInOtherNoncurrentLiabi...</td>\n",
       "      <td>Other long-term liabilities</td>\n",
       "      <td>252000000.0</td>\n",
       "      <td>192000000.0</td>\n",
       "      <td>163000000.0</td>\n",
       "      <td>4</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>us-gaap_NetCashProvidedByUsedInOperatingActivi...</td>\n",
       "      <td>Net Cash from Operating Activities</td>\n",
       "      <td>5641000000.0</td>\n",
       "      <td>9108000000.0</td>\n",
       "      <td>5822000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>us-gaap_NetCashProvidedByUsedInInvestingActivi...</td>\n",
       "      <td>Cash flows from investing activities:</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>us-gaap_ProceedsFromMaturitiesPrepaymentsAndCa...</td>\n",
       "      <td>Proceeds from Maturities, Prepayments and Call...</td>\n",
       "      <td>19425000000.0</td>\n",
       "      <td>15197000000.0</td>\n",
       "      <td>8792000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>us-gaap_ProceedsFromSaleOfAvailableForSaleSecu...</td>\n",
       "      <td>Proceeds from Sale of Debt Securities,</td>\n",
       "      <td>1806000000.0</td>\n",
       "      <td>1023000000.0</td>\n",
       "      <td>527000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>us-gaap_PaymentsToAcquireAvailableForSaleSecur...</td>\n",
       "      <td>Purchases of marketable securities</td>\n",
       "      <td>-11897000000.0</td>\n",
       "      <td>-24787000000.0</td>\n",
       "      <td>-19308000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>us-gaap_PaymentsToAcquireBusinessesNetOfCashAc...</td>\n",
       "      <td>Payments to Acquire Businesses</td>\n",
       "      <td>-49000000.0</td>\n",
       "      <td>-263000000.0</td>\n",
       "      <td>-8524000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>us-gaap_PaymentsForProceedsFromOtherInvestingA...</td>\n",
       "      <td>Investments and other, net</td>\n",
       "      <td>-77000000.0</td>\n",
       "      <td>-24000000.0</td>\n",
       "      <td>-34000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>us-gaap_NetCashProvidedByUsedInInvestingActivi...</td>\n",
       "      <td>Net Cash from Investing Activities</td>\n",
       "      <td>7375000000.0</td>\n",
       "      <td>-9830000000.0</td>\n",
       "      <td>-19675000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>us-gaap_NetCashProvidedByUsedInFinancingActivi...</td>\n",
       "      <td>Cash flows from financing activities:</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>us-gaap_PaymentsForRepurchaseOfCommonStock</td>\n",
       "      <td>Payments related to repurchases of common stock</td>\n",
       "      <td>-10039000000.0</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>us-gaap_PaymentsRelatedToTaxWithholdingForShar...</td>\n",
       "      <td>Tax Withholding for Share-Based Compensation</td>\n",
       "      <td>-1475000000.0</td>\n",
       "      <td>-1904000000.0</td>\n",
       "      <td>-942000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>us-gaap_PaymentsOfDividends</td>\n",
       "      <td>Payments of Dividends</td>\n",
       "      <td>-398000000.0</td>\n",
       "      <td>-399000000.0</td>\n",
       "      <td>-395000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>us-gaap_ProceedsFromDebtNetOfIssuanceCosts</td>\n",
       "      <td>Issuance of debt, net of issuance costs</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4977000000.0</td>\n",
       "      <td>4968000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>us-gaap_RepaymentsOfDebt</td>\n",
       "      <td>Repayment of debt</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>-1000000000.0</td>\n",
       "      <td>-0.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>us-gaap_ProceedsFromPaymentsForOtherFinancingA...</td>\n",
       "      <td>Other</td>\n",
       "      <td>-2000000.0</td>\n",
       "      <td>-7000000.0</td>\n",
       "      <td>-4000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>us-gaap_NetCashProvidedByUsedInFinancingActivi...</td>\n",
       "      <td>Net Cash from Financing Activities</td>\n",
       "      <td>-11617000000.0</td>\n",
       "      <td>1865000000.0</td>\n",
       "      <td>3804000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>us-gaap_CashCashEquivalentsRestrictedCashAndRe...</td>\n",
       "      <td>Net Change in Cash</td>\n",
       "      <td>1399000000.0</td>\n",
       "      <td>1143000000.0</td>\n",
       "      <td>-10049000000.0</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>us-gaap_CashCashEquivalentsRestrictedCashAndRe...</td>\n",
       "      <td>Cash and cash equivalents at end of period</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>us-gaap_CashCashEquivalentsRestrictedCashAndRe...</td>\n",
       "      <td>Cash and cash equivalents at end of period</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>us-gaap_SupplementalCashFlowInformationAbstract</td>\n",
       "      <td>Supplemental disclosures of cash flow informat...</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>us-gaap_IncomeTaxesPaidNet</td>\n",
       "      <td>Income Tax Expense</td>\n",
       "      <td>1404000000.0</td>\n",
       "      <td>396000000.0</td>\n",
       "      <td>249000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>us-gaap_InterestPaidNet</td>\n",
       "      <td>Cash paid for interest</td>\n",
       "      <td>254000000.0</td>\n",
       "      <td>246000000.0</td>\n",
       "      <td>138000000.0</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "execution_count": 25
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-06-05T09:03:03.348290Z",
     "start_time": "2025-06-05T09:03:02.830224Z"
    }
   },
   "cell_type": "code",
   "source": "filings[1].open()",
   "id": "eacae30ed1710f9b",
   "outputs": [],
   "execution_count": 27
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-06-05T09:04:31.631954Z",
     "start_time": "2025-06-05T09:04:31.622903Z"
    }
   },
   "cell_type": "code",
   "source": "xbs.xbrl_list[1].query().by_text(\"us-gaap:PaymentsToAcquireProductiveAssets\").to_dataframe('concept', 'label', 'value')",
   "id": "c9e595cbba729a4f",
   "outputs": [
    {
     "data": {
      "text/plain": [
       "                                     concept  \\\n",
       "0  us-gaap:PaymentsToAcquireProductiveAssets   \n",
       "1  us-gaap:PaymentsToAcquireProductiveAssets   \n",
       "2  us-gaap:PaymentsToAcquireProductiveAssets   \n",
       "\n",
       "                                               label        value  \n",
       "0  Purchases related to property and equipment an...  -1069000000  \n",
       "1  Purchases related to property and equipment an...  -1833000000  \n",
       "2  Purchases related to property and equipment an...   -976000000  "
      ],
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>concept</th>\n",
       "      <th>label</th>\n",
       "      <th>value</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>us-gaap:PaymentsToAcquireProductiveAssets</td>\n",
       "      <td>Purchases related to property and equipment an...</td>\n",
       "      <td>-1069000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>us-gaap:PaymentsToAcquireProductiveAssets</td>\n",
       "      <td>Purchases related to property and equipment an...</td>\n",
       "      <td>-1833000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>us-gaap:PaymentsToAcquireProductiveAssets</td>\n",
       "      <td>Purchases related to property and equipment an...</td>\n",
       "      <td>-976000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "execution_count": 29
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-06-05T09:06:08.878303Z",
     "start_time": "2025-06-05T09:06:08.871107Z"
    }
   },
   "cell_type": "code",
   "source": "xbs.xbrl_list[2].query().by_text(\"Purchases related to property and equipment and intangible assets\").to_dataframe('concept', 'label', 'value')",
   "id": "76fea43e80f30913",
   "outputs": [
    {
     "data": {
      "text/plain": [
       "                                             concept  \\\n",
       "0  nvda:PurchasesOfPropertyAndEquipmentAndIntangi...   \n",
       "1  nvda:PurchasesOfPropertyAndEquipmentAndIntangi...   \n",
       "2  nvda:PurchasesOfPropertyAndEquipmentAndIntangi...   \n",
       "\n",
       "                                               label        value  \n",
       "0  Purchases related to property and equipment an...  -1833000000  \n",
       "1  Purchases related to property and equipment an...   -976000000  \n",
       "2  Purchases related to property and equipment an...  -1128000000  "
      ],
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>concept</th>\n",
       "      <th>label</th>\n",
       "      <th>value</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>nvda:PurchasesOfPropertyAndEquipmentAndIntangi...</td>\n",
       "      <td>Purchases related to property and equipment an...</td>\n",
       "      <td>-1833000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>nvda:PurchasesOfPropertyAndEquipmentAndIntangi...</td>\n",
       "      <td>Purchases related to property and equipment an...</td>\n",
       "      <td>-976000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>nvda:PurchasesOfPropertyAndEquipmentAndIntangi...</td>\n",
       "      <td>Purchases related to property and equipment an...</td>\n",
       "      <td>-1128000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "execution_count": 31
  }
 ],
 "metadata": {},
 "nbformat": 4,
 "nbformat_minor": 5
}
